package com.dxk.mapper;

import com.dxk.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DepartmentMapper {

    //获取所有部门
    List<Department> getAllDepartment();
    //根据id获取部门
    Department getDepartmentById(@Param("id") int id);

}
